package com.bwda.dsrs.filecenter.api.clientappversion.org;

import com.bwda.dsrs.base.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 组织表
 *
 * @author youzhen
 * @date 2019年4月28日
 */
@Data
@ApiModel(description = "组织表")
public class OrgTreeForm {

	@ApiModelProperty(value = "组织编码")
	private int id;

	@ApiModelProperty(value = "组织编码")
	private String orgCode;

	@ApiModelProperty(value = "组织名称")
	private String orgName;

	@ApiModelProperty(value = "组织管理员编号")
	private String orgAdminCode;

	@ApiModelProperty(value = "上级ID")
	private Integer parentId;

	@ApiModelProperty(value = "所有上级编码，逗号隔开")
	private String parentIds;

	@ApiModelProperty(value = "所有上级路径/隔开")
	private String parentNames;

	@ApiModelProperty(value = "备注")
	private String remark;

	@ApiModelProperty(value = "0未删除 1已删除")
	private Integer delFlag;

	@ApiModelProperty(value = "tree")
	private List<OrgTreeForm> children;

	@ApiModelProperty(value = "组织管理员")
	private String orgAdminName;

	@ApiModelProperty(value = "创建人")
	private String createUser;

	@ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date createTime;

	@ApiModelProperty(value = "是否选中")
	private Boolean checkedFlag;


}